{if $reg_page ne 6}<form method="post" action="profile.php?action={$action}&page={$next_page}" name="frmReg">{/if}
  <table width="100%" border="0" cellspacing="0" cellpadding="10" summary="Registration Table" style="text-align:left">
    <caption>
      <h4>{if $reg_page eq 1}User Information{elseif $reg_page eq 2}Password Reset Information{elseif $reg_page eq 3}EMAIL has been sent{*Personal Info*}{elseif $reg_page eq 4}More About You{elseif $reg_page eq 5}Terms Of Service{/if}</h4>
    </caption>
{if $reg_page eq 1}
	{if $bad_user eq true}
	<tr>
		<td colspan="3" class="main_error">This username is in use. Please choose another username.</td>
	</tr>
	{/if}
	{if $no_user eq true}
	<tr>
		<td colspan="3" class="main_error">You must first enter a username.</td>
	</tr>
	{/if}
    <tr>
      <td>Username:</td>
      <td><input name="username" type="text" value="{$username}"/></td>
      <td class="reg_info">Usernames can contain the following characters:
	  		<ul>
				<li>Uppercase and lowercase letters (A-Z and a-z)</li>
				<li>Numbers (0-9)</li>
				<li>Period/Dot (.)</li>
				<li>Underscore (_)</li>
			</ul>
	  </td>
    </tr>
	{if $no_email eq true}
	<tr>
		<td colspan="3" class="main_error">You must first enter an email address.</td>
	</tr>
	{/if}
	{if $bad_email eq true}
	<tr>
		<td colspan="3" class="main_error">You must enter a valid email address.</td>
	</tr>
	{/if}
    <tr>
      <td>Email Address:</td>
      <td><input type="text" name="email" value="{$email}" /></td>
      <td class="reg_info">This must be a valid email address.</td>
    </tr>
	<tr>
		<td colspan="3"><hr /></td>
	</tr>
{if $action eq 'edit'}    <tr>
      <td>Old Password:</td>
      <td><input type="password" name="oldpassword" /></td>
      <td class="reg_info">Use this field only if you want to change your password.</td>
    </tr>{/if}
	{if $bad_password eq true}
	<tr>
		<td colspan="3" class="main_error">It seems the two passwords you entered do not match, please try again.</td>
	</tr>
	{/if}
	{if $no_password eq true}
	<tr>
		<td colspan="3" class="main_error">You must first enter a password. Then please enter it again to confirm it.</td>
	</tr>
	{/if}
    <tr>
      <td>Password:</td>
      <td><input type="password" name="password" value="{$password}" /></td>
      <td class="reg_info">Enter your new password here.</td>
    </tr>
    <tr>
      <td>Confirm:</td>
      <td><input type="password" name="confirm" value="{$confirm}"/></td>
      <td class="reg_info">Please confirm your password.</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>

    <br />
  </p>
{elseif $reg_page eq 2}
	<tr>
		<td>Secret Question:</td>
		<td><select name="mnuQuestion" onchange="setAnswerBox()" onfocus="setAnswerBox()">
				<option value="0"{if $multi eq 0} selected="selected"{/if}>What is your mother's maiden name?</option>
				<option value="1"{if $multi eq 1} selected="selected"{/if}>What city where you born in?</option>
				<option value="2"{if $multi eq 2} selected="selected"{/if}>Who was your hero when you were younger?</option>
				<option value="3"{if $multi eq 3} selected="selected"{/if}>What is your favorite food?</option>
				<option value="4"{if $multi eq 4} selected="selected"{/if}>4</option>
				<option value="5"{if $multi eq 5} selected="selected"{/if}>5</option>
				<option value="6"{if $multi eq 6} selected="selected"{/if}>6</option>
				<option value="7"{if $multi eq 7} selected="selected"{/if}>Custom</option>
    		</select></td>
		<td class="reg_info">Please select a question to use for password revovery. If you choose "Custom", please enter your question below.</td>
	</tr>
	{if $no_custom eq true}
	<tr>
		<td colspan="3" class="main_error">You have selected that you want to enter a custom question. You must enter a custom question to continue.</td>
	</tr>
	{/if}
	<tr>
		<td>Custom Question:</td>
		<td><input name="customQuestion" type="text"{if $multi ne 7} disabled="disabled"{/if} size="40" value="{$custom}"/></td>
		<td class="reg_info">If you choose to have a custom question, please enter it here.</td>
	</tr>
	{if $no_answer eq true}
	<tr>
		<td colspan="3" class="main_error">Please enter your secret answer to continue.</td>
	</tr>
	{/if}
	<tr>
		<td>Secret Answer:</td>
		<td><input type="text" name="answer" value="{$answer}"/></td>
		<td class="reg_info">This can be what ever you want it to be</td>
	</tr>
{elseif $reg_page eq 3}
	<tr>
		<td align="center">Your account has been successfully created. An email has been sent out with your information to review and confirm. Please check your email and activate the link contained within.<br />
		<p style="color:red; text-align:center; text-decoration:blink">All accounts are activated automatically at the moment due to an email error. We assume this is temporary and will be fixed soon</p>
		</td>
	</tr>
	{*<tr>
		<td>Name</td>
		<td><input type="text" name="name" /></td>
		<td align="center">Hide: <input type="checkbox" name="name_hide" checked="checked" /><br />
		<div class="reg_info">Hidden by default.</div></td>
		<td class="reg_info">Please enter your full name.</td>
	</tr>
	<tr>
		<td>Gender</td>
		<td>
			<select name="tgender" id="tgender">
			  <option value="Male">Male</option>
			  <option value="Female">Female</option>
			</select>
		</td>
		<td align="center">Hide: <input type="checkbox" name="gender_hide" /></td>
		<td class="reg_info">Are you Male or Female? If neither or both, then select the one that best fits you.</td>
	</tr>
	<tr>
		<td>Location</td>
		<td><input type="input" name="txtLocation" /></td>
		<td align="center">Hide: <input type="checkbox" name="location_hide" checked="checked" /><br />
		<div class="reg_info">Hidden by default.</div></td>
		<td class="reg_info"></td>
	</tr>
	<tr>
		<td>Birthday</td>
		<td>Month:
          <select name="month" id="month">
            <option value="1" selected="selected">January</option>
            <option value="2">February</option>
            <option value="3">March</option>
            <option value="4">April</option>
            <option value="5">May</option>
            <option value="6">June</option>
            <option value="7">July</option>
            <option value="8">August</option>
            <option value="9">September</option>
            <option value="10">October</option>
            <option value="11">November</option>
            <option value="12">December</option>
            </select><br />
			Day:
            <select name="day" id="day">
              <option value="1" selected="selected">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
              <option value="20">20</option>
              <option value="21">21</option>
              <option value="22">22</option>
              <option value="23">23</option>
              <option value="24">24</option>
              <option value="25">25</option>
              <option value="26">26</option>
              <option value="27">27</option>
              <option value="28">28</option>
              <option value="29">29</option>
              <option value="30">30</option>
              <option value="31">31</option>
            </select><br />
        Year: <input name="year" type="text" id="year" value="{$year}" size="4" maxlength="4" /></td>
		<td align="center">Hide: <input type="checkbox" name="birthday_hide" /></td>
		<td class="reg_info">Please enter you birthdate.<br />
		Age will be automatically determined.</td>
	</tr>
	<tr>
		<td>Maritial Status</td>
		<td><select name="tstatus">
          <option value="0">Single (not looking)</option>
          <option value="1">Single and Looking</option>
          <option value="2">Married</option>
          <option value="3">Separated</option>
          <option value="4">Divorced</option>
          <option value="5">Widowed</option>
        </select></td>
		<td align="center">Hide: <input type="checkbox" name="status_hide" checked="checked" /><br />
		<div class="reg_info">Hidden by default.</div></td>
		<td class="reg_info">Please select your maritial status.</td>
	</tr>*}
{elseif $reg_page eq 4}

This page also intentionally left blank...for now.<br />
Please press next to go on.

{elseif $reg_page eq 5}
	<tr>
		<td colspan="2">
			<textarea readonly="true" cols="50" rows="10">
{if $tos eq null}Since we currently do not have a Terms of Service (TOS) to use, as soon as one is written, all accounts will be locked out until the user agrees to the new TOS. When you login during said update, you will be immediately directed to the TOS page. There, you will have to agree to it before you will be allowed to continue using Codename: STIMPy!'s services.{else}{$tos}{/if}</textarea>
		</td>
	</tr>
	{if $no_tos eq true}<tr>
		<td colspan="2" class="main_error">You must accept the terms of service before you can procede.</td>
	</tr>{/if}
	<tr>
		<td width="66%"><input type="checkbox" name="acceptTOS" />I agree to the TOS as stated above.</td>
		<td class="reg_info">Please acknowledge that you have read and agree with the Terms of Service</td>
	</tr>
{elseif $reg_page eq 6}
	
{/if}
  </table>
	<p align="right">
	    {if $reg_page ne 6 && $reg_page ne 3}<input name="resetAll" type="button" id="resetReg" value="Reset Registration" onclick="ResetAll()"/>
	    <input type="reset" name="Reset" value="Reset" />{/if}
    	{if $reg_page ne 3}<input name="Submit" type="submit" value="{if $reg_page ne 6}Next"{else}Finish" onclick="finishReg()"{/if} />{/if}
  	</p>
{if $reg_page ne 6}</form>{/if}